<?php 
include 'connections/conn.php';
include 'consultas.php';
include 'funciones.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"lang="es" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>
.::OneView::..
</title>
             <link rel="stylesheet" type="text/css" href="plantilla.css" media="all"/>
        <link rel="stylesheet" type="text/css" href="muffin.css"/> 
		<link rel="stylesheet" href="tableorderer.css" type="text/css" />

		<script src="scriptaculous/lib/prototype.js" type="text/javascript"></script>
		<script src="scriptaculous/src/effects.js" type="text/javascript"></script>
		<script type="text/javascript" src="validation.js"></script>
        <script type="text/javascript" language="JavaScript" src="table_orderer.js"></script>
        <script type="text/javascript" src="window.js"></script>	
        <script type="text/javascript" src="fabtabulous1.js"></script>
    
        <link href="themes/default.css" rel="stylesheet" type="text/css"/>
        <link href="themes/alphacube.css" rel="stylesheet" type="text/css"/>

		<script type="text/javascript" src="plantilla2/scripts/wufoo.js"></script>
        <script type="text/javascript" src="jquery-1.6.2.js" language="javascript"></script>
        <!-- CSS -->
        <link rel="stylesheet" href="plantilla2/css/structure.css" type="text/css" />
        <link rel="stylesheet" href="plantilla2/css/form.css" type="text/css" />
        <link rel="stylesheet" href="plantilla2/css/theme.css" type="text/css" />
        
        <script type="text/javascript" src="scripts.js" language="javascript"></script>

</head>	 
<body>
<div id="wrap">
     <div id="header_container" style="height:90px;">
         <div id="header_logo">
         <img src="imagenes/logo.gif"  width="100%" height="100%" style="float:left; "/>
         </div>
	</div>
     
	<div id="contenido_container">
     <div id="grande2">
<h2>Modificar Contrase&ntilde;a del Usuario</h2>
   <fieldset>
      <legend>Datos del Usuario</legend>
      <p>&nbsp;</p>
    <form name='modif_pass' class="wufoo" id='modif_pass' method='post' action="javascript:formus(document.getElementById('modif_pass'), 'query_pass.php' , 'grande2');" >
        <ul>
        <?php $res=idUser_pas($_GET['id'], $conexion);
		$resultados=mysql_fetch_array($res);
		?>
       	  <li>
          <label class="desc2" style="width:140px">Cuenta del usuario: </label>
    	  <span align="left"><?php echo $resultados['correo_electronico']?></span>
		</li>
        <li>
        <label class="desc2">Contrase&ntilde;a Actual: <span class="req">*</span></label>
         	<div class="form-row">
    	<input type="password" name="pass1" id="pass1" class="campos required field text medium" title="Ingrese la contrase&ntilde;a del usuario" >
         </div>
        <p class="instruct">En este campo se debe colocar la contrase&ntilde;a del Usuario, el cual es requerido.</p>
		</li>
        <li>
        <label class="desc2">Nueva Contrase&ntilde;a: <span class="req">*</span></label>
         	<div class="form-row">
    	<input type="password" name="pass" id="pass" class="campos required field text medium" title="Ingrese la contrase&ntilde;a del usuario">
         </div>
        <p class="instruct">En este campo se debe colocar la contrase&ntilde;a del Usuario, el cual es requerido.</p>
		</li>
		<li>
        <label class="desc2">Repita la contrase&ntilde;a:<span class="req">*</span> </label>
    	 	<div class="form-row">
        <input type="password" name="pass2" id="pass2" class="confirmacion required field text medium" title="Las contrase&ntilde;as no coinciden">   
        </div>
        <p class="instruct">En este campo es para verificar la validar la contrasa&ntilde;a ingresada anteriormente, el cual es requerido.</p>
        </li>
        <input type="hidden" name="id" id="id" value="<?php echo $_GET['id'];?>">
        <input type="hidden" name="tipo" id="tipo" value="pass_nuevo">    
      	 <p>&nbsp;</p>
    	</ul>
         <div id="barra">
		<input type="submit" value="Cambiar">
        </div>
        <p>&nbsp;</p>
	</form>
		<script type='text/javascript'>
					var valid = new Validation('modif_pass', {immediate : true, useTitles:true,onSubmit :true, onFormValidate : formCallback});
					validaciones(valid);
					
					
		</script>
        </fieldset>	

	</div>
     <div id="pie"> </div> 
     </div>   
    </div>
    <div id="fin" style="text-align:center; margin-top:30px; font-size:8px;">
 			Copyright &copy; <?php echo date('Y'); ?> por Adapare.<br/>
            			Todos los Derechos Reservados.<br/>
		</div> 
</div> 
 </body>
</html>